package com.fcscs.cservice.ws.client.commonservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.commonservice.GetMainMenuRequest;
import com.fcscs.cservice.ws.schema.commonservice.GetMainMenuResponse;

public class GetMainMenuClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(GetMainMenuClient.class);

	public GetMainMenuResponse test(GetMainMenuRequest req) {
		GetMainMenuResponse resp = (GetMainMenuResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv bill option list size: " + resp.getMainMenuItemList().size());
		return resp;
	}
}
